package top.dingwen.io.treasure.api.auth;

import top.dingwen.io.treasure.api.base.constant.ApiConstant;

import java.util.Collection;

/**
 * 权限判断规则服务接口
 *
 * @author dingwen
 * @since 2024/4/22 13:30
 */
@SuppressWarnings(ApiConstant.ALL)
public interface IAuthorityStrategy {
    /**
     * 是否通过
     *
     * @param judgeAuthorities 需要判断的权限集
     * @param hasAuthorities  当前有的权限集
     * @return boolean 结果
     */
    boolean isPass(Collection<String> judgeAuthorities, Collection<String> hasAuthorities);
}
